xen/arm: add iounmap after initrd has been loaded in domain_build
authorWei Chen <wei.chen@arm.com>
Fri, 4 Nov 2022 10:07:32 +0000 (18:07 +0800)
committerJulien Grall <jgrall@amazon.com>
Mon, 7 Nov 2022 18:59:24 +0000 (18:59 +0000)
commite61a78981364925a43c9cc24dc77b62ff7b93c9f
tree7e2269dedc7c343d88b0c95207bb439137c6ded6
parenta43e2b02df4156951fcba841ab3e15708c0701b0
xen/arm: add iounmap after initrd has been loaded in domain_build

domain_build use ioremap_wc to map a new non-cacheable virtual
address for initrd. After Xen copy initrd from this address to
guest, this new allocated virtual address has not been unmapped.

So in this patch, we add an iounmap to the end of domain_build,
after Xen loaded initrd to guest memory.

Signed-off-by: Wei Chen <wei.chen@arm.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c